package com.financing.wap.service.impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.financing.wap.dao.IInfoSubscribeDao;
import com.financing.wap.dto.InfoSubscribeDTO;
import com.financing.wap.service.IInfoSubscribeService;

/**
 * 
* @ClassName: InfoSubscribeServiceImpl 
* @Description: 订阅信息
* @author lisu
*
 */
@Service("infoSubscribeServiceImpl")
@Transactional(rollbackFor=Exception.class)
public class InfoSubscribeServiceImpl extends BaseServiceImpl implements IInfoSubscribeService {

	@Autowired
	private IInfoSubscribeDao infoSubscribeDaoImpl;

	@Override
	public List<InfoSubscribeDTO> queryInfoSubscribeList(
			InfoSubscribeDTO infoSubscribeDTO) throws SQLException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int insertInfoSubscribe(InfoSubscribeDTO infoSubscribeDTO)
			throws SQLException {
		return infoSubscribeDaoImpl.insertInfoSubscribe(infoSubscribeDTO);
	}

	@Override
	public InfoSubscribeDTO queryInfoSubscribe(InfoSubscribeDTO infoSubscribeDTO)
			throws SQLException {
		return infoSubscribeDaoImpl.queryInfoSubscribe(infoSubscribeDTO);
	}

	@Override
	public boolean checkInfoSubscribe(InfoSubscribeDTO infoSubscribeDTO)
			throws SQLException {
		InfoSubscribeDTO dto = infoSubscribeDaoImpl.queryInfoSubscribe(infoSubscribeDTO);
		return dto == null?false:true;
	}
	@Override
	public int updateInfoSubscribe(InfoSubscribeDTO infoSubscribeDTO)
			throws SQLException{
		return infoSubscribeDaoImpl.updateInfoSubscribe(infoSubscribeDTO);
	}
	

}
